<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        @keyframes spin {
            to {
                transform: rotate(1turn);
            }
        }
        .path{
            margin-left: 200px;
            border-radius: 50%;
            background-color: lightcoral;
            width: 300px;
            height: 300px;
        }
        .avatar {
            width: 50px;
            height: 50px;
            margin-left: 130px;
            border-radius: 50%;
            animation: spin 3s infinite linear;
            transform-origin: 50% 150px;
            /* 150px = 路径的半径 */
        }
    </style>
</head>

<body>
    <div class="path">
        <img src="images/head01.jpg" class="avatar" />
    </div>
</body>

</html>